package com.ysd.entity;

public class Shopcart {
	private Integer id;
	private Integer userId;
	private Integer productId;
	private Integer number;
	private String count;
	private Product product;
	private User user;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getProductId() {
		return productId;
	}
	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	public Integer getNumber() {
		return number;
	}
	public void setNumber(Integer number) {
		this.number = number;
	}
	public String getCount() {
		return count;
	}
	public void setCount(String count) {
		this.count = count;
	}
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Shopcart(Integer id, Integer userId, Integer productId, Integer number, String count, Product product,
			User user) {
		super();
		this.id = id;
		this.userId = userId;
		this.productId = productId;
		this.number = number;
		this.count = count;
		this.product = product;
		this.user = user;
	}
	public Shopcart() {
		super();
	}
	@Override
	public String toString() {
		return "Shopcart [id=" + id + ", userId=" + userId + ", productId=" + productId + ", number=" + number
				+ ", count=" + count + ", product=" + product + ", user=" + user + "]";
	}
	
	
	
}
